package com.zmn.brs.business.interfaces.objective;

import com.github.ltsopensource.core.domain.Job;
import com.zmn.brs.drools.bean.ObjectiveMonitor;
import com.zmn.brs.model.result.OperateRecordResult;

/**
 * 描述： 目标指标监控
 * @author chongw
 * @since 2021-06-07 17:49
 */
public interface ObjectiveTargetBService {

    /**
     * 描述：目标指标监控定时任务
     * @param job 任务job
     * @return
     * @author chongw
     * @since 2021-06-07 17:50
     */
    public Boolean computeObjectiveTask(Job job);

    /**
     * 描述：目标指标推送定时任务
     * @param job 任务
     * @return
     * @author chongw
     * @since 2021-06-07 17:50
     */
    public Boolean pushObjectiveTask(Job job,Integer smsRuleId, String pushTopic);

    /**
     * 描述：目标监控触发规则
     * @param record
     * @param taskVersionId
     * @return
     */
    public OperateRecordResult triggeringRule(ObjectiveMonitor record, String taskVersionId);


}
